﻿<%@ Page Title="" Language="C#" MasterPageFile="~/manageback.master" AutoEventWireup="true" CodeFile="Class_mange.aspx.cs" Inherits="manage_calss_update" debug="true"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
        CellPadding="3" DataKeyNames="ClassID" DataSourceID="LinqDataSource1" 
        ForeColor="Black" GridLines="Vertical" Width="100%">
        <AlternatingRowStyle BackColor="#CCCCCC" />
        <Columns>
            <asp:BoundField DataField="ClassID" HeaderText="类备号ID" ReadOnly="True" 
                SortExpression="ClassID" />
            <asp:BoundField DataField="ClassName" HeaderText="类别名称" 
                SortExpression="ClassName" />
            <asp:TemplateField HeaderText="选择">
                <EditItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </ItemTemplate>
                <ItemStyle Width="5%" />
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <HeaderStyle BackColor="#384050" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#808080" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#383838" />
    </asp:GridView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="DataClassesDataContext" EntityTypeName="" TableName="tb_Class">
    </asp:LinqDataSource>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="全选" />
    <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="删除" />
</asp:Content>

